<div id="content">
	<div id="top">
		<h3>Locations</h3>
		<%= render :partial => '/partials/help_link', :locals => {:path => {:controller => "help", :action => "locations", :anchor => "index"}} %>
	</div>
	<div id="filter">
		<div class="left">
		    <p>Showing <%= @locations.count %> <%= ((@locations.count == 1)?"Location":"Locations") %></p>
		</div>
		<div class="right">
		    <%= link_to (@show_hidden ? 'Hide Hidden' : 'Show Hidden'), toggle_hidden_locations_path %>
		    <%= link_to 'New Location', new_location_path %>
		</div>
	</div>
	<table id="list">
		<tr class="header">
			<th class="first">Location</th>
			<th class="second">Address</th>
			<th class="last"></th>
		</tr>
		<% @locations.each do |location| %>
		<tr class="row<%= ' fade' if location.hidden %>">
			<td class="first"><%= location.name %></td>
			<td class="second"><%= location.address %></td>
			<td class="last">
				<%= link_to (location.hidden ? 'Un-Hide' : 'Hide'), location, :confirm => 'Are you sure?', :method => :delete %>
				<%= link_to 'Edit', edit_location_path(location) %>
			</td>
		</tr>
		<% end %>
	</table>
</div>